#include "BoatData.h"




BoatData::BoatData(int id, int type, double x, double y)
{
	this->id = id; 
	this->type = type;
	this->rect = new Rect(x, y, _OBS_BOAT_2_HEIGHT, _OBS_BOAT_2_WIDTH);
	this->rect->Vx = this->rect->Vy = 0;

	this->initData();
}

void BoatData::initSpriteHandler(LPD3DXSPRITE spritehandler)
{
	sprites->initSpriteHandler(spritehandler);
}

void BoatData::initData()
{
	this->initSprite();
}

void BoatData::initSprite()
{
	sprites = new Sprites(rect);
	sprites->addSprite(_STATE_MAP_STAGE2_BOAT_1, _ID_MAP_STAGE2_BOAT_1);
	sprites->setState(_STATE_MAP_STAGE2_BOAT_1);
}
